package slipview.util.ldk.slipview

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import kotlinx.android.synthetic.main.activity_main.*
import ldk.util.slipview.SlipRootView

class MainActivity : AppCompatActivity() {
    val TAG = "MainActivity"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        btn_goto_slip.setOnClickListener{
            Log.v(TAG, "flContent onClick, goto flContent")
            startActivity(Intent(this, SlipRootViewActivity::class.java))
            SlipRootView.preActivityCloseExistAnimation(this)
        }
        btn_goto_drawerLayout.setOnClickListener {
            startActivity(Intent(this, DrawerLayoutActivity::class.java))
        }

        Log.v(TAG, "onCreate")
    }

    override fun onResume() {
        super.onResume()
        Log.v(TAG, "onResume");
    }

    override fun onPause() {
        super.onPause()
        Log.v(TAG, "onPause");
    }

    override fun onStop() {
        super.onStop()
        Log.v(TAG, "onStop");
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.v(TAG, "onDestroy")
    }
}
